﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

/// <summary>
/// 车辆求购信息表-竞拍表基础输入参数
/// </summary>
public class AppVehicleBidBaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }
    
    /// <summary>
    /// 求购信息表
    /// </summary>
    [Required(ErrorMessage = "求购信息表不能为空")]
    public virtual long? PurchaseId { get; set; }
    
    /// <summary>
    /// 卖家Id
    /// </summary>
    [Required(ErrorMessage = "卖家Id不能为空")]
    public virtual long? SellerId { get; set; }
    
    /// <summary>
    /// 竞拍价格
    /// </summary>
    [Required(ErrorMessage = "竞拍价格不能为空")]
    public virtual decimal? BidPrice { get; set; }
    
    /// <summary>
    /// 车辆描述
    /// </summary>
    [Required(ErrorMessage = "车辆描述不能为空")]
    public virtual string Description { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Dict("AuctionStatus", AllowNullValue=true)]
    [Required(ErrorMessage = "状态不能为空")]
    public virtual int? Status { get; set; }
    
}

/// <summary>
/// 车辆求购信息表-竞拍表分页查询输入参数
/// </summary>
public class PageAppVehicleBidInput : BasePageInput
{
    /// <summary>
    /// 求购信息表
    /// </summary>
    public long? PurchaseId { get; set; }
    
    /// <summary>
    /// 卖家Id
    /// </summary>
    public long? SellerId { get; set; }
    
    /// <summary>
    /// 竞拍价格
    /// </summary>
    public decimal? BidPrice { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Dict("AuctionStatus", AllowNullValue=true)]
    public int? Status { get; set; }
    
    /// <summary>
    /// 选中主键列表
    /// </summary>
     public List<long> SelectKeyList { get; set; }
}

/// <summary>
/// 车辆求购信息表-竞拍表增加输入参数
/// </summary>
public class AddAppVehicleBidInput
{
    /// <summary>
    /// 求购信息表
    /// </summary>
    [Required(ErrorMessage = "求购信息表不能为空")]
    public long? PurchaseId { get; set; }
    
    /// <summary>
    /// 卖家Id
    /// </summary>
    public long? SellerId { get; set; }
    
    /// <summary>
    /// 竞拍价格
    /// </summary>
    public decimal? BidPrice { get; set; }
    
    /// <summary>
    /// 车辆描述
    /// </summary>
    public string? Description { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    //[Dict("AuctionStatus", AllowNullValue = true)]
    public int? Status { get; set; } = 1;
    
}

/// <summary>
/// 车辆求购信息表-竞拍表删除输入参数
/// </summary>
public class DeleteAppVehicleBidInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
}

/// <summary>
/// 车辆求购信息表-竞拍表更新输入参数
/// </summary>
public class UpdateAppVehicleBidInput
{
    /// <summary>
    /// 主键Id
    /// </summary>    
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
    /// <summary>
    /// 求购信息表
    /// </summary>    
    [Required(ErrorMessage = "求购信息表不能为空")]
    public long? PurchaseId { get; set; }
    
    /// <summary>
    /// 卖家Id
    /// </summary>    
    [Required(ErrorMessage = "卖家Id不能为空")]
    public long? SellerId { get; set; }
    
    /// <summary>
    /// 竞拍价格
    /// </summary>    
    [Required(ErrorMessage = "竞拍价格不能为空")]
    public decimal? BidPrice { get; set; }
    
    /// <summary>
    /// 车辆描述
    /// </summary>    
    [Required(ErrorMessage = "车辆描述不能为空")]
    [MaxLength(500, ErrorMessage = "车辆描述字符长度不能超过500")]
    public string Description { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>    
    [Dict("AuctionStatus", AllowNullValue=true)]
    [Required(ErrorMessage = "状态不能为空")]
    public int? Status { get; set; }
    
}

/// <summary>
/// 车辆求购信息表-竞拍表主键查询输入参数
/// </summary>
public class QueryByIdAppVehicleBidInput : DeleteAppVehicleBidInput
{
}

/// <summary>
/// 下拉数据输入参数
/// </summary>
public class DropdownDataAppVehicleBidInput
{
    /// <summary>
    /// 是否用于分页查询
    /// </summary>
    public bool FromPage { get; set; }
}

/// <summary>
/// 车辆求购信息表-竞拍表数据导入实体
/// </summary>
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImportAppVehicleBidInput : BaseImportInput
{
    /// <summary>
    /// 求购信息表 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? PurchaseId { get; set; }
    
    /// <summary>
    /// 求购信息表 文本
    /// </summary>
    [ImporterHeader(Name = "*求购信息表")]
    [ExporterHeader("*求购信息表", Format = "", Width = 25, IsBold = true)]
    public string PurchaseFkDisplayName { get; set; }
    
    /// <summary>
    /// 卖家Id 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? SellerId { get; set; }
    
    /// <summary>
    /// 卖家Id 文本
    /// </summary>
    [ImporterHeader(Name = "*卖家Id")]
    [ExporterHeader("*卖家Id", Format = "", Width = 25, IsBold = true)]
    public string SellerFkDisplayName { get; set; }
    
    /// <summary>
    /// 竞拍价格
    /// </summary>
    [ImporterHeader(Name = "*竞拍价格")]
    [ExporterHeader("*竞拍价格", Format = "", Width = 25, IsBold = true)]
    public decimal? BidPrice { get; set; }
    
    /// <summary>
    /// 车辆描述
    /// </summary>
    [ImporterHeader(Name = "*车辆描述")]
    [ExporterHeader("*车辆描述", Format = "", Width = 25, IsBold = true)]
    public string Description { get; set; }
    
    /// <summary>
    /// 状态 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public int? Status { get; set; }
    
    /// <summary>
    /// 状态 文本
    /// </summary>
    [Dict("AuctionStatus")]
    [ImporterHeader(Name = "*状态")]
    [ExporterHeader("*状态", Format = "", Width = 25, IsBold = true)]
    public string StatusDictLabel { get; set; }
    
}
